package com.wll.mapper;

import com.github.pagehelper.Page;
import com.wll.entity.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DepartmentMapper {
    int deleteByPrimaryKey(Integer did);

    int insert(Department record);

    Department selectByPrimaryKey(Integer did);

    List<Department> selectAll();

    int updateByPrimaryKey(Department record);

    @Select("select * from department ")
    Page<Department> selectPage();
}